ZenAlgo - DeltaThis indicator visualizes cumulative delta volume across multiple exchanges and trading pairs, with optional moving averages, divergence detection, and contextual labeling. It aggregates buy and sell volume from both spot and perpetual markets, applying normalization and visual encoding to highlight volume flow dynamics over time.
Volume Aggregation Logic
The script starts by collecting volume data from up to nine exchanges. It distinguishes between spot (e.g., USDT, USD) and perpetual markets (e.g., USDT.P, USD.P) using dynamically constructed tickers based on the asset's base currency. For each enabled exchange, it fetches volume using request.security , filtering out invalid or zero-volume responses.
Each set of volume data (spot1, spot2, perp1, perp2) is then processed through a reducer function that combines the values using a selected method—sum, average, median, or variance. These processed volumes are further categorized and summed into total spot and perp volume streams, forming the basis for downstream delta computations.
Delta Calculation
For each bar, the script decomposes the candlestick into wick and body proportions, calculating how much of the total volume might be attributed to upward or downward pressure. This estimation weights the volume by the visual structure of the candle—larger bodies and upper wicks in bullish candles suggest buying pressure; inverse logic applies for bearish candles.
These estimated buy and sell volumes are then subtracted to derive per-bar delta. A cumulative delta series is computed by summing this bar-by-bar delta across a user-defined window length.
Divergences on Delta
Fractal logic is applied to detect local highs and lows in the cumulative delta series. These points serve as anchors for divergence comparisons:
Regular divergences identify price making higher highs (or lower lows) while delta makes lower highs (or higher lows).
Hidden divergences look for the opposite (price pullback vs delta continuation).
The same logic is applied independently to:
Raw cumulative delta
A primary delta moving average
A secondary, slower moving average
Each can be configured with different lookback lengths and moving average types (SMA, EMA, WMA, HMA, RMA).
The divergence logic gains additional value when used in tandem with the delta moving averages and contextual temperature state. For example, a divergence detected on the slower delta average while the temperature band is in an “Extreme Hot” or “Cold” zone may indicate a more meaningful exhaustion event. This layered approach allows users to filter weaker divergences and focus on those that align with broader delta context.
Gradient and Temperature Context
A third moving average (e.g., WMA(50)) is used to provide a contextual "temperature" state of the delta environment. Based on deviations from its own mean and standard deviation, this third MA is classified into zones:
"Extreme Hot", "Hot", "Warm"
"Neutral"
"Cool", "Cold", "Extreme Cold"
These zones are encoded using color and transparency gradients in the chart’s background. This helps identify periods where delta conditions are statistically stretched or compressed relative to recent history.
EMA Cross Conditions
The script tracks crossover events between the short and long EMAs of delta, especially when these align with a directional shift in cumulative delta (e.g., zero-line cross). If confirmed by volume skew (more buy than sell or vice versa), specific visual markers are plotted.
Labels and Informational Lines
Dynamic labels are rendered on the latest bar showing:
Cumulative delta and last divergence
EMA values and associated divergence
"Slow MA" value and its temperature state
These labels float next to the latest values, using thematic or neutral colors based on user preference.
Buy/Sell Pressure Tables
Two optional tables display breakdowns of:
Buy vs Sell volume
Their percentage contribution
Net delta value
Market condition label (e.g., "Full Bull", "Bearish")
These are calculated over the selected lookback period and color-coded accordingly.
An experimental table compares raw and aggregated spot/perpetual volume contributions and their percentage skew.
Background Highlight Logic
Background colors are conditionally rendered based on buy/sell volume dominance. Several thresholds exist:
2x or 3x buy volume dominance → greenish tones
2x or 3x sell volume dominance → reddish tones
Combined with temperature overlays, this highlights areas of potentially high conviction from either side.
Cross Conditions
The script detects situations where cumulative delta crosses under buy/sell volume thresholds. Visual dots mark:
Negative delta intersecting rising sell volume
Positive delta intersecting rising buy volume
This provides additional cues when short-term volume shifts might contradict recent cumulative flow.
How to Interpret Values
Cumulative Delta (AggDelta): Tracks net buy vs sell pressure over time. A rising delta suggests persistent buying pressure, and vice versa.
Temperature State: Places delta flow into historical context. “Extreme Hot” implies sustained positive flow, possibly overextended; “Cold” signals inverse.
EMA Lines: Short- and long-term smoothing of delta for trend and divergence detection.
Cross Events: Represent moments when short EMA crosses over delta or long EMA, often signaling a directional momentum change.
Tables and Labels: Quantify volume dominance and flow state, helping assess if flow aligns with price structure.
How to Best Use
For context: Observe overall slope and temperature of the third MA. High deviations often precede cooling or reversal.
For confluence: Look for alignment between price structure (e.g., higher highs) and delta divergence to identify exhaustion or continuation.
For short-term timing: Watch EMA crosses and volume conditions (e.g., buy volume increasing while delta crosses above zero).
Added Value Compared to Other Free Indicators
Multi-exchange Aggregation: Includes spot and perp data across major exchanges with flexible inclusion settings.
Granular Delta Estimation: Uses candle body/wick proportions rather than simple up/down tick assumptions.
Context-Aware Visualization: Integrates volume gradient, statistical deviation zones, and divergence overlays in one compact view.
Highly Customizable: Users can fine-tune divergence, moving average, color scheme, and table display independently.
Integrated View with Synergistic Logic: Unlike using several isolated scripts, this indicator unifies delta flow, divergence, volume dominance, and statistical context into one coherent framework. This synergy reduces the need to reconcile signals from different sources and allows for clearer judgment when multiple conditions align.
Limitations and Disclaimers
Delta Approximation: Calculated using heuristic candle shape assumptions; not a tick-level order book delta.
Exchange Coverage: Relies on availability of correct tickers and historical volume data via TradingView’s request.security .
Visual Lag: Cumulative delta and divergence patterns may develop over several bars and are not predictive on their own.
No Entry Signals: This indicator does not provide trading signals, nor does it evaluate risk or price targets.
Additional Limitations
This indicator estimates delta from candle shape and volume distribution heuristics. In low-liquidity markets or on lower timeframes, this estimation may misrepresent actual flow dynamics, especially during volatile spikes or news-driven moves. Divergence patterns may appear with delay or persist without price reaction, particularly in ranging or algorithmically driven markets. Users should combine these tools with broader context and price action awareness rather than relying on isolated delta events.
Cari dalam skrip untuk " TABLE "
Superdupermegadeduper signals by BrenFX🚀 Superdupermegadeduper Signals by BrenFX
Overview
The Superdupermegadeduper Signals indicator is a comprehensive trading system that combines multiple advanced technical analysis concepts to identify high-probability trading opportunities. This indicator integrates supply/demand zone analysis, dynamic trendline detection, and multi-confirmation signal generation to provide traders with precise entry, stop-loss, and take-profit levels.
🎯 Key Features
Supply & Demand Zone Detection
Intelligent Zone Identification: Automatically detects high-probability supply and demand zones based on price action and touch frequency
Customizable Zone Strength: Set minimum touches required for zone validation (2-10 touches)
Visual Zone Display: Clear visual representation with customizable colors and transparency
Zone Extension: Projects zones forward for future reference
Dynamic Trendline Analysis
Multi-Touch Trendline Detection: Identifies significant support and resistance trendlines with configurable minimum touch requirements
Automatic Trendline Drawing: Draws and extends trendlines automatically with custom colors
Deviation Tolerance: Configurable deviation percentage for trendline validation
Breakout & Retest Signals: Detects trendline breakouts and subsequent pullback retests
Advanced Signal Generation
Dual Signal Types:
Zone Reversal Signals: Based on supply/demand zone interactions
Trendline Breakout Signals: Based on trendline breaks with pullback confirmation
Multi-Confirmation System:
Volume confirmation (optional)
RSI filter integration
Candlestick pattern confirmation
Pullback verification
Professional Trade Management
Multiple Stop Loss Methods:
ATR-based dynamic stops
Zone-based stops
Fixed point stops
Automatic Level Calculation: Entry, stop-loss, and take-profit levels calculated automatically
Real-Time Trade Table: Live display of current trade levels and parameters
Customizable Table Position: Place trade information anywhere on your chart
Alert System
Comprehensive Alerts: Get notified instantly when signals are generated
Detailed Alert Messages: Include entry price, stop-loss, and take-profit levels
Frequency Control: Once-per-bar alert frequency to avoid spam
📊 How It Works
Signal Logic
Zone Analysis: The indicator scans for areas where price has repeatedly found support or resistance
Trendline Detection: Identifies significant trend lines by connecting pivot points with multiple touches
Confirmation Process: Multiple filters ensure signal quality:
Price action confirmation (multiple bullish/bearish candles)
Volume above average (optional)
RSI oversold/overbought conditions (optional)
Entry Timing: Signals are generated when all confirmations align
Buy Signals Generated When:
Price reaches a demand zone with bullish reversal confirmation, OR
Price breaks above resistance trendline and retests successfully
Sell Signals Generated When:
Price reaches a supply zone with bearish reversal confirmation, OR
Price breaks below support trendline and retests successfully
⚙️ Configuration Options
Supply/Demand Settings
Zone Strength: Minimum touches required (2-10)
Lookback Period: Historical bars to analyze (10-100)
Zone Extension: Forward projection length (1-20 bars)
Trendline Settings
Lookback Period: Historical analysis range (20-200 bars)
Minimum Touches: Required pivot connections (2-5)
Deviation Tolerance: Allowable price variance (0.01-1.0%)
Signal Filters
Reversal Confirmation: Required confirmation candles (1-5)
Pullback Confirmation: Retest validation period (1-5)
Volume Filter: Above-average volume requirement
RSI Filter: Overbought/oversold confirmation
Trade Management
Stop Loss Methods: ATR, Zone-based, or Fixed points
ATR Multiplier: Risk adjustment (0.5-5.0x)
Take Profit: Fixed point target (1.0-50.0 points)
📈 Best Practices
Recommended Settings
For Scalping: Lower zone strength (2-3), shorter lookback periods
For Swing Trading: Higher zone strength (4-6), longer lookback periods
For Trend Following: Enable trendline signals, use ATR-based stops
Risk Management
Always use the provided stop-loss levels
Consider position sizing based on stop-loss distance
Monitor the trade table for real-time level updates
Use alerts to avoid missing opportunities
🎨 Visual Elements
Supply Zones: Red semi-transparent rectangles
Demand Zones: Green semi-transparent rectangles
Resistance Lines: Red trendlines
Support Lines: Green trendlines
Buy Signals: Green "BUY" labels below bars
Sell Signals: Red "SELL" labels above bars
Trade Table: Comprehensive trade information display
💡 Tips for Success
Combine with Market Structure: Use on clean trends and at key support/resistance levels
Multiple Timeframe Analysis: Confirm signals on higher timeframes
Volume Confirmation: Enable volume filter for higher quality signals
Risk Management: Never risk more than 1-2% per trade
Backtesting: Test settings on historical data before live trading
⚠️ Important Notes
This indicator works best in trending markets
Signals are more reliable when multiple confirmations align
Always consider fundamental analysis and market conditions
Past performance does not guarantee future results
Practice proper risk management at all times
🔧 Technical Specifications
Pine Script Version: 6
Overlay: Yes
Max Objects: 500 boxes, 500 lines
Performance: Optimized for real-time analysis
Compatibility: Works on all timeframes and instruments
Developed by BrenFX | Advanced Trading Signals for Professional Traders
Remember: Trading involves risk. This indicator is a tool to assist in analysis and should not be the sole basis for trading decisions. Always use proper risk management and consider your financial situation before trading.
Quantum Yield MatrixQuantum Yield Matrix is a sophisticated Pine Script™ v6 indicator designed to empower traders with a dynamic visualization of compound returns across global markets. It generates a customizable table showcasing daily percentage changes, cumulative compound returns, and performance differentials for a user-selected index and up to 10 stocks within a defined date range. The table automatically updates when the date range is modified, ensuring seamless flexibility for analysis. Ideal for portfolio evaluation, benchmark comparisons, and multi-exchange tracking, this tool operates independently of external data sources.
Key Features
Multi-Exchange Support: Integrates data from major exchanges, including BIST (Turkey), NYSE and NASDAQ (USA), SSE (China Shanghai Composite), XETR (Germany DAX), NSE (India NIFTY), and TVC (Japan Nikkei and other indices). Users select a single exchange per analysis, with automatic prefixing for accurate symbol resolution (e.g., NASDAQ:NDX).
Performance Metrics: Computes daily returns ((close - previous close) / previous close), aggregates compound returns over the period, and provides:Total return percentages.
Stock-versus-index performance differences (e.g., alpha insights).
A bottom summary comparing the watchlist’s average return to the index.
Visual Table Design: Features a color-coded table (green for positive returns, red for negative, gray for totals) with date headers for intuitive readability. Missing data is elegantly handled with "No Data" in gray cells, ensuring robust calculations.
Dynamic Customization: Allows full adjustment of exchange, index symbol (e.g., NDX for NASDAQ), stock symbols (e.g., AAPL, TSLA), and date range. The table dynamically recalculates when the date range changes, making it perfect for backtesting or forward-looking analysis.
Purpose and BenefitsQuantum Yield Matrix delivers a quantum leap in yield analysis by organizing complex return data into a clear, matrix-like table. It simplifies portfolio performance evaluation against benchmarks, highlighting outperforming assets at a glance. Whether assessing a NASDAQ tech portfolio against NDX or exploring emerging market stocks, this tool saves time, enhances decision-making, and fosters cross-market awareness for diversified strategies in today’s interconnected global economy.
How It Works
Setup: In the indicator settings, select an exchange (default: NASDAQ), input the index symbol (e.g., NDX), and up to 10 stock symbols (defaults: AAPL, TSLA, MSFT, etc.). Define the analysis period with start and end dates. Adjusting the date range instantly updates the table.
Data Retrieval: Leverages TradingView’s request.security function to fetch daily closing prices for each symbol, respecting the chosen exchange prefix (e.g., "NASDAQ:NDX").
Calculations:Daily returns are calculated as percentage changes.
Compound returns accumulate multiplicatively (starting from 1.0, multiplied by (1 + daily return)).
Comparisons subtract index returns from each stock’s total, with averages summarized at the bottom.
Rendering: Constructs a detailed table at the top-center of the chart and a summary table at the bottom. The script aligns with the chart’s timeframe but aggregates data to daily ("D") for consistency.
Edge Cases: If data is unavailable (e.g., due to exchange-specific holidays), cells display "No Data," preserving the integrity of compound return calculations.
Important Usage Note: For optimal results, set your chart symbol to match the analyzed exchange, such as NASDAQ:NDX for US data. The indicator relies on the chart’s bars, so mismatched symbols (e.g., a BIST symbol for US data) may skip non-trading days (e.g., July 15, a Turkish holiday).
Use daily or higher timeframes for best performance.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. Past performance is not indicative of future results, and all trading involves risk of loss. Users are solely responsible for their decisions. The script is original, uses only built-in Pine Script functions, and complies with TradingView’s publishing rules—no external libraries, exaggerated claims, or guarantees are implied. Always verify data accuracy and consult professionals before acting on insights.
Feedback is welcome—feel free to fork and enhance!
My Ultimate Reversal Probability Signal (Adaptive)Adaptive indicator combining RSI, T3, ZigZag, Torben, TDI, POB, and reversal probability (credit to original Author) to identify potential trend reversals with customizable settings.
My Ultimate Reversal Probability Signal (Adaptive)
Overview:
This advanced technical indicator is designed to help traders identify potential trend reversals by combining multiple analytical methods into a single, customizable tool. It integrates adaptive RSI, T3 Moving Average, ZigZag Multi-Scale, Torben Moving Median, Trend Direction Index (TDI), Point of Balance (POB) Oscillator, and a Trend Reversal Probability model. The indicator provides clear visual signals and a detailed table for real-time market analysis, making it suitable for traders of all experience levels.
Key Features:
Adaptive RSI: Dynamically adjusts RSI length based on market volatility, with customizable min/max lengths (5–50).
T3 Moving Average: Smooths price data with adaptive length (5–50) for trend detection.
ZigZag Multi-Scale: Identifies key swing points with adaptive length (3–20) and plots an average line.
Torben Moving Median: Provides robust trend bands using a median-based approach (5–50).
Trend Direction Index (TDI): Assesses future trend direction with adaptive length (3–7) and ADX integration.
Point of Balance (POB) Oscillator: Measures market equilibrium with adaptive length (5–50).
Trend Reversal Probability: Estimates reversal likelihood using a statistical model based on SMA crossovers.
Reversal Zones: Highlights overbought/oversold conditions with RSI-based zones (default: 70/30).
Future Trend Visualization: Projects potential price movements using volume delta analysis.
Comprehensive Table: Displays real-time values for RSI length, T3 length, ZigZag length, Torben length, TDI length, POB length, Delta1, and reversal probability.
Backtesting Metrics: Tracks win rate, profit factor, and total trades within a user-defined date range.
Customizable Settings: Extensive input options for enabling/disabling components, adjusting lengths, and tweaking volatility influence.
How It Works:
The indicator combines multiple signals to generate buy/sell conditions, visualized as upward (▲) or downward (▼) arrows on the chart. Each component (RSI, T3, etc.) can be enabled or disabled via the settings panel, allowing traders to tailor the tool to their strategy. The adaptive lengths adjust dynamically based on market conditions, ensuring relevance across different timeframes and assets. A table in the bottom-left corner provides a snapshot of key metrics, including the newly added Delta1 (volume delta for the first period), enhancing decision-making.
Usage Tips:
Timeframes: Works on any timeframe, but higher timeframes (e.g., 1H, 4H, Daily) may reduce noise.
Assets: Suitable for stocks, forex, cryptocurrencies, and commodities.
Confirmation: Combine with price action or other indicators for stronger signals.
Settings: Adjust RSI overbought/oversold levels (default 70/30) and enable/disable components to match your trading style.
Backtesting: Use the built-in win rate and profit factor metrics to evaluate performance within a custom date range.
Settings:
Main Settings: ATR period (14), RSI length (min 5, max 50, default 14).
Signal Filtering: Enable/disable T3, ZigZag, VolDelta, Torben, TDI, POB, Reversal Probability, and Reversal Zones.
T3 Settings: Adaptive/static length (5–50), volume factor (0.7), volatility influence (0.3).
VolDelta Settings: Adaptive/static length (3–20), volatility influence (0.3).
Torben Settings: Adaptive/static length (5–50), volatility influence (0.3).
Trend Reversal Settings: Adaptive/static length (5–50), SMA periods (5/34).
TDI Settings: Adaptive/static length (3–7), ATR/ADX periods (14), smoothing factor (0.5).
POB Settings: Adaptive/static length (5–50), volatility influence (0.3).
Colors: Customize up/down colors and volatility band display.
Backtest Date Range: Set start/end dates for performance metrics.
Visual Elements:
Plots: T3 line, ZigZag average line, Torben bands, volatility bands, reversal zones.
Shapes: Buy (▲) and sell (▼) signals, T3 crossover markers (🞛).
Boxes: Volume delta-based future trend boxes (drawn on the last bar).
Table: Displays adaptive lengths, Delta1, and reversal probability.
Labels: Optional reversal labels for overbought/oversold conditions.
Intended Audience:
Day traders seeking precise reversal signals.
Swing traders analyzing multi-timeframe trends.
Technical analysts combining multiple indicators.
Beginners learning adaptive indicator mechanics.
Disclaimer:
This indicator is for educational and analytical purposes only. It does not guarantee profits or predict future market movements. Always conduct your own research, use proper risk management, and consider market conditions before trading. The author is not responsible for any financial losses incurred.
Feedback:
I welcome your feedback and suggestions to improve this indicator. Please share your experience in the comments or contact me directly. Happy trading!
Overheat Oscillator with DivergenceIndicator Description
The Overheat Oscillator with Divergence is an advanced technical indicator designed for the TradingView platform, assisting traders in identifying potential market reversal points by analyzing price momentum and volume, as well as detecting divergences. The indicator combines trend strength assessment with signal smoothing to provide clear indications of market overheat or oversold conditions. An optional divergence detection feature allows for the identification of discrepancies between price movement and the oscillator's value, which may signal upcoming trend changes.
The indicator is displayed in a separate panel below the price chart and offers visual cues through a color gradient, horizontal reference lines, and a dynamic market sentiment table. Users can customize numerous parameters, such as calculation periods, sentiment thresholds, line colors, and visualization styles, making the indicator a versatile tool for various trading strategies.
How the Indicator Works
The indicator is based on the following key components:
Oscillator Calculations
The indicator analyzes price candles, assigning a score based on their nature. A bullish candle (when the closing price is higher than the opening price) receives a score of +1.0, while a bearish candle (when the closing price is lower than the opening price) receives a score of -1.0. This scoring reflects the strength of price movement over a given period.
The score is modified by a volume multiplier (default: 2.0) if the candle's volume exceeds the volume's simple moving average (SMA, default: calculated over 20 candles). This ensures that candles with higher volume have a greater impact on the oscillator's value, better capturing significant market movements driven by increased trading activity. For example, a bullish candle with high volume may receive a score of +2.0 instead of +1.0, amplifying the bullish signal.
The scores are summed over a specified number of candles (default: 20), normalized to a 0–100 range, and then smoothed using a simple moving average (SMA, default: 5 periods) to reduce noise and improve signal clarity.
Color Gradient
The oscillator's values are visualized using a color gradient that changes based on the oscillator's level:
Green: Market cooldown (values below the Gradient Min threshold).
Yellow: Neutral sentiment (values between Gradient Min and Gradient Yellow).
Orange: Elevated activity (values between Gradient Yellow and Gradient Orange).
Red: Market overheat (values above Gradient Orange).
The color gradient is applied as the background in the oscillator panel, facilitating quick assessment of market sentiment.
Reference Levels
The indicator displays customizable horizontal lines for key thresholds (e.g., Overheat Threshold, Oversold Threshold, Gradient Min, Yellow, Orange, Max). These lines are visible only at the height of the last few oscillator candles, preventing chart clutter and helping users focus on current values.
Users can also define three custom horizontal lines with selectable styles (solid, dotted, dashed) and colors. These lines serve as auxiliary tools, e.g., for marking personal support/resistance levels, but do not affect the oscillator's signals or background colors.
Market Sentiment
The indicator displays sentiment labels in a table located in the top-right corner of the panel, dynamically updating based on the oscillator's value:
Cooled: Values below Gradient Yellow (default: 35).
Neutral: Values between Gradient Yellow and Gradient Orange (default: 60).
Excited: Values between Gradient Orange and Overheat Threshold (default: 70).
Overheated: Values above Overheat Threshold (default: 70).
The Overheat Threshold and Oversold Threshold are critical for displaying the "Overheated" and "Cooled" labels in the sentiment table, enabling users to quickly identify extreme market conditions. The labels update when key thresholds are crossed, and their colors match the oscillator's gradient.
Divergence Detection
The indicator offers optional detection of regular bullish and bearish divergences:
Bullish Divergence: Occurs when the price forms a lower low, but the oscillator forms a higher low, suggesting a weakening downtrend.
Bearish Divergence: Occurs when the price forms a higher high, but the oscillator forms a lower high, suggesting a weakening uptrend.
Divergences are marked on the chart with labels ("Bull" for bullish, "Bear" for bearish) and lines indicating pivot points. They are calculated with a delay equal to the Lookback Right setting (default: 5 candles), meaning signals appear after pivot confirmation in the specified lookback period. The indicator also generates alerts for users when a divergence is detected.
Indicator Settings
Main Settings (SETTINGS)
Period Length: Specifies the number of candles used for oscillator calculations (default: 20).
Volume SMA Period: The period for the volume's simple moving average (default: 20).
Volume Multiplier: Multiplier applied to candle scores when volume exceeds the average (default: 2.0).
SMA Length: The period for smoothing the oscillator with a simple moving average (default: 5).
Thresholds (THRESHOLDS)
Overheat Threshold: Level indicating market overheat (default: 70). This value determines when the sentiment table displays the "Overheated" label, signaling a potential peak in an uptrend.
Oversold Threshold: Level indicating market cooldown (default: 30). This value determines when the sentiment table displays the "Cooled" label, signaling a potential bottom in a downtrend.
Gradient Min (Green): Lower threshold for the green gradient (default: 20).
Gradient Yellow Threshold: Threshold for the yellow gradient (default: 35).
Gradient Orange Threshold: Threshold for the orange gradient (default: 60).
Gradient Max (Red): Upper threshold for the red gradient (default: 70).
Visualization (VISUALIZATION)
Signal Line Color: Color of the oscillator line (default: dark red, RGB(5, 0, 0)).
Show Reference Lines: Enables/disables the display of threshold lines (default: enabled).
Divergence Settings (DIVERGENCE SETTINGS)
Calculate Divergence: Enables/disables divergence detection (default: disabled).
Lookback Right: Number of candles back for pivot analysis (default: 5).
Lookback Left: Number of candles to the left for pivot analysis (default: 5).
Line Style (STYLE)
Custom Line 1, 2, 3 Value: Levels for custom horizontal lines (default: 70, 50, 30).
Custom Line 1, 2, 3 Color: Colors for custom lines (default: black, RGB(0, 0, 0)).
Custom Line 1, 2, 3 Style: Line styles (solid, dotted, dashed; default: dashed, dotted, dashed).
How to Use the Indicator
Adding to the Chart
Add the indicator to your TradingView chart by searching for "Overheat Oscillator with Divergence."
Configure the settings according to your trading strategy.
Signal Interpretation
Overheated: Values above the Overheat Threshold (default: 70) in the sentiment table may indicate a potential uptrend peak.
Cooled: Values below the Oversold Threshold (default: 30) in the sentiment table may suggest a potential downtrend bottom.
Divergences:
Bullish: Look for "Bull" labels on the chart, indicating potential upward reversals (calculated with a Lookback Right delay).
Bearish: Look for "Bear" labels, indicating potential downward reversals (calculated with a Lookback Right delay).
Customization
Experiment with settings such as period length, volume multiplier, or gradient thresholds to tailor the indicator to your trading style (e.g., scalping, medium-term trading).
Usage Examples
Scalping: Set a shorter period (e.g., Period Length = 10, SMA Length = 3) and monitor rapid sentiment changes and divergences on lower timeframes (e.g., 5-minute charts).
Medium-Term Trading: Use default settings or increase Period Length (e.g., 30) and SMA Length (e.g., 7) for more stable signals on hourly or daily charts.
Reversal Detection: Enable divergence detection and observe "Bull" or "Bear" labels in conjunction with overheat/cooled levels in the sentiment table.
Notes
The indicator performs best when used in conjunction with other technical analysis tools, such as support/resistance lines, moving averages, or Fibonacci levels.
Divergences may serve as early signals but do not always guarantee immediate trend reversals—confirmation with other indicators is recommended.
Test different settings on historical data to find the optimal configuration for your chosen market and timeframe.
Angular Volatility📘 Angular Volatility – Technical Indicator for Trend Intensity Analysis
Angular Volatility is an advanced technical analysis tool developed specifically for cryptocurrency markets on the Binance platform. Its primary objective is to detect structural shifts in price dynamics with greater precision by analyzing the combined behavior of market volume and the angular slope of a customizable moving average.
Unlike conventional indicators that operate directly over the price chart, this script displays all of its metrics within a dedicated secondary window, allowing a cleaner and more isolated view of critical movements such as acceleration, pause, or potential reversals. In addition, it includes a robust system for volatility intensity classification, automated alerts, and a live technical info table that summarizes key real-time values.
🎯 What does Angular Volatility analyze?
Angular Volatility measures the interaction between traded volume and the angle of a moving average selected by the user from six types (SMA, EMA, WMA, HMA, ALMA, and SWMA). From these variables, the system generates:
- Angular Volatility Index: A composite value representing the product of volume and angular slope, reflecting the true strength behind a move.
- Angular Oscillator: A standalone line that displays the directional angle (in degrees) of the selected moving average, limited between ±90°.
- Volatility Intensity Levels: Automatic classification of peaks into four levels—moderate, elevated, high, and extreme—displayed with distinct colors and geometric shapes.
- Technical Data Table: A real-time panel showing both the current angle of the moving average and the current value of the Angular Volatility Index in a compact, user-friendly format.
- Custom Alerts System: Five built-in alert conditions allow users to monitor key volatility events without needing to watch the chart constantly.
⚙️ Configuration Parameters
The script includes multiple configuration sections that allow users to fine-tune both its analytical precision and visual appearance:
- High Volume Detection: Adjustable historical depth and sensitivity to identify significant volume spikes.
- Initial Moving Average Settings: Selection of MA type, length, offset, and dynamic coloring based on slope angle.
- Volatility Index Options: Fully customizable visuals, synced with the angle values set in the moving average section.
- Volatile Intensity Styling: Choose which levels to display, customize their colors and icons, and optionally color the main chart candles for quick interpretation.
- Information Table: Options to show/hide the table, adjust size and position, and customize background/text colors.
🧠 Compatibility and Technical Recommendations
This indicator was developed to operate exclusively on Binance using the following timeframes only: 1m – 5m – 15m – 30m – 1h – 4h – 1D.
This restriction is deliberate, ensuring consistency in the mathematical model used to calculate angular data. Using this script on other platforms or timeframes may result in inaccurate readings or logic errors, as asset types like stocks, forex, or indices behave differently in terms of volume structure and slope normalization.
If applied to unsupported markets or timeframes, the script will automatically display a warning message without calculating or drawing technical values.
🔬 Practical Example
The following case study—applied to the BTC chart on a 1-hour timeframe—demonstrates how volatility intensity levels behave in structured scenarios such as channel breakdowns, rebound phases, false breakouts, and high-energy consolidation zones:
🔻 Letter A: Downward breakout and full intensity sequence
- The price was moving within a fairly uniform descending channel, which ends with a false breakout to the upside—quickly invalidated as a market trap.
- The true breakout occurs to the downside through a strong red candle, categorized by the system as moderate intensity (gray).
- This candle is followed by a Doji, then a smaller red candle also marked as moderate intensity, followed by a larger red candle showing high intensity (white), and finally a stronger red candle painted yellow, indicating extreme intensity.
- This full sequence (moderate → moderate → high → extreme) marks a technical climax, after which the price begins a progressive reversal.
- Although the drop unfolds over five red candles, the subsequent recovery takes place over 18 candles, mostly green and smaller in size, forming a “V” shape: sharp decline followed by a steady upward climb.
- This entire section is enclosed within an oval labeled A, with the four intensity levels clearly reflected on both the main chart and the Angular Volatility panel.
🔼 Letter B: Ascending channel and breakout with increasing bullish pressure
- After the rebound described in section A, the price begins forming a new ascending channel, marked with the letter B. This channel starts right where the previous range ends, with a very slight upward offset—nearly indistinguishable.
- In the final stage of this channel, a green candle classified as moderate intensity (gray) attempts a breakout. It is followed by a stronger green candle, painted brown, indicating elevated intensity and confirming bullish acceleration.
- Both candles and the corresponding peak on the Angular Volatility indicator are enclosed in an oval labeled B, representing a second wave of directional energy.
⛓️ Letter C: Resistance zone and consolidation following extreme volatility
- The upward movement continues until it reaches a resistance level, where a large green candle emerges, painted yellow to denote extreme intensity.
- Unlike the previous case in section A, this movement does not trigger a sharp reversal, but rather a technical pause followed by sideways consolidation, forming a horizontal range.
- This zone is marked on the chart with an oval labeled C, representing a classic case of stopping volume and range formation.
Floor and Roof Indicator with SignalsFloor and Roof Indicator with Trading Signals
A comprehensive support and resistance indicator that identifies premium and discount zones with automated signal generation.
Key Features:
Dynamic Support/Resistance Zones: Calculates floor (support) and roof (resistance) levels using price action and volatility
Premium/Discount Zone Identification: Highlights areas where price may find resistance or support
Customizable Signal Frequency: Control how often signals are displayed (every Nth occurrence)
Visual Signal Table: Optional table showing the last 5 long and short signal prices
Multiple Timeframe Compatibility: Works across all timeframes
Technical Details:
Uses ATR-based calculations for dynamic zone width adjustment
Combines Bollinger Bands with highest/lowest price analysis
Smoothing options for cleaner signal generation
Fully customizable colors and display options
How to Use:
Floor Zones (Blue): Potential support areas where long positions may be considered
Roof Zones (Pink): Potential resistance areas where short positions may be considered
Signal Crosses: Visual markers when price interacts with key levels
Signal Table: Track recent signal prices for analysis
Settings:
Length: Period for calculations (default: 200)
Smooth: Smoothing factor for cleaner signals
Zone Width: Adjust the thickness of support/resistance zones
Signal Frequency: Control signal display frequency
Visual Options: Customize colors and table position
Alerts Available:
Long signal alerts when price touches discount zones
Short signal alerts when price reaches premium zones
Educational Purpose: This indicator is designed to help traders identify potential support and resistance areas. Always combine with proper risk management and additional analysis.
This description focuses on the technical aspects and educational value while avoiding any language that could be interpreted as financial advice or guaranteed profits.
ItsGuarantee Instrument Net Change Real-TimeDescription of the Indicator
The "ItsGuarantee Instrument Net Change Real-Time" is a Pine Script (version 5) indicator developed for TradingView to provide real-time net price change metrics for a financial instrument across three timeframes: Year-to-Date (YTD), Month-to-Date (MTD), and Day-to-Date (DTD). It calculates the difference between the instrument's current closing price and its opening price at the start of the year, month, and day, respectively. These net changes are displayed in a customizable table overlaid on the chart, enabling traders to quickly assess the instrument's performance over these periods without manual calculations.
Key Features:
Real-Time Net Change Calculation:
YTD Net Change: Measures the difference between the current price and the opening price on January 1, 2025 (or the specified year).
MTD Net Change: Calculates the difference between the current price and the opening price at the beginning of the current month.
DTD Net Change: Computes the difference between the current price and the opening price of the current trading day.
Customizable Table Display:
The table's position on the chart can be adjusted via a user input dropdown, with options including "top_right," "top_left," "middle_right," "middle_left," "bottom_right," or "bottom_left."
The table is structured with two columns ("Metric" and "Value") and four rows (a header row followed by three rows for the net change metrics).
It features a clean design with a gray header and white cells, accented by a border for improved readability.
Overlay on Chart:
The indicator operates in overlay=true mode, meaning the table is displayed directly on the price chart rather than in a separate pane, allowing traders to view performance metrics alongside price action seamlessly.
Error Handling:
If data for a specific timeframe (e.g., the yearly open price) is unavailable (na), the table displays "N/A" instead of a numerical value, ensuring the indicator remains functional even with incomplete data.
How It Works:
Inputs:
The script defines the starting year for the YTD calculation (default is 2025) and includes an input for the table's position on the chart.
A switch statement maps the user-selected table position (e.g., "top_right") to the corresponding Pine Script position constant (e.g., position.top_right).
Data Retrieval:
The current price is sourced using the close variable, which updates in real-time as new price data becomes available.
Historical opening prices for the year, month, and day are retrieved using request.security, pulling data from the specified timeframes ("12M" for yearly, "M" for monthly, "D" for daily). The barmerge parameters ensure accurate data alignment without gaps or lookahead bias.
Net Change Calculations:
YTD Net Change = Current Price - Yearly Open Price (January 1, 2025)
MTD Net Change = Current Price - Monthly Open Price (start of the current month)
DTD Net Change = Current Price - Daily Open Price (start of the current trading day)
The na function checks for missing data to prevent errors during calculations.
Table Creation and Population:
A table is created using table.new with 2 columns and 4 rows, positioned according to the user's input.
The first row serves as a header with "Metric" and "Value" labels, styled with a gray background and white text for contrast.
The subsequent rows display the YTD, MTD, and DTD net changes in dollars, formatted to two decimal places using str.tostring. If a value is unavailable, it displays "N/A."
Use Case for Traders:
This indicator is highly practical for traders and investors who need to monitor an instrument's performance across different timeframes without performing manual calculations. Specific use cases include:
Day Traders: The DTD net change provides a snapshot of intraday performance, helping traders make quick decisions based on daily price movements.
Swing Traders: The MTD net change offers insights into short-term trends within the month, aiding in the identification of potential swing opportunities.
Long-Term Investors: The YTD net change allows for tracking yearly performance, which is valuable for portfolio management, performance evaluation, or tax-related purposes (e.g., assessing gains/losses in 2025).
The table's overlay format ensures that these metrics are always visible on the chart, providing a convenient reference point during technical analysis. It complements other tools like momentum indicators or moving averages, offering a comprehensive view of both price performance and trend dynamics.
Potential Enhancements:
Percentage Change: The indicator currently displays net changes in dollar terms. Adding percentage changes (e.g., YTD % change = (YTD Net Change / Year Open Price) * 100) could provide a more normalized perspective on performance.
Color Coding: Incorporating conditional formatting (e.g., green for positive net changes, red for negative) would make the table more visually intuitive for quick decision-making.
Dynamic Year Input: Allowing users to dynamically input the starting year (instead of hardcoding 2025) would enhance the indicator's flexibility for use in future years.
Additional Timeframes: Including other periods like Quarter-to-Date (QTD) could align with business reporting practices, as highlighted in related sources like Sisense (2025), which discusses the importance of QTD metrics for trend analysis.
Connection to the Original Post:
The "ItsGuarantee Instrument Net Change Real-Time" indicator connects directly to the theme of the original X post by @ItsGuarantee
about "Instrument Speed & Close Momentum." While the post likely refers to a momentum-based indicator (focusing on the rate of price changes to assess trend strength), this net change table provides a complementary perspective by quantifying price performance over specific timeframes. Momentum indicators, as noted in the Investopedia (2025) web results, are useful for identifying overbought or oversold conditions, while net change metrics (YTD, MTD, DTD) offer a straightforward way to track overall price movement, supporting trend confirmation or portfolio monitoring. The "ItsGuarantee" branding ties this indicator to the creator's suite of tools, emphasizing real-time, actionable insights for traders.
PowerHouse SwiftEdge AI v2.10 with Custom Filters & AI AnalysisPowerHouse SwiftEdge AI v2.10 with Custom Filters & AI Analysis
Overview
PowerHouse SwiftEdge AI v2.10 is an advanced TradingView Pine Script indicator designed to identify high-probability trading setups by combining pivot-based structure analysis, multi-timeframe trend detection, and adaptive AI-driven signal filtering. The script integrates Change of Character (CHoCH) and Break of Structure (BOS) signals with customizable momentum, volume, breakout, and trend filters to enhance trade precision. Additionally, it offers an optional AI Market Analysis module that predicts future price trends across multiple timeframes, providing traders with a comprehensive market outlook.
The script is highly customizable, allowing users to tailor inputs to their trading style, whether for scalping, swing trading, or long-term strategies. It is suitable for all asset classes, including stocks, forex, crypto, and commodities, and performs optimally on timeframes ranging from 1-minute to daily charts.
Key Features
Pivot-Based Signal Generation:
Identifies pivot highs and lows to detect CHoCH (reversal patterns) and BOS (continuation patterns).
Signals are plotted as "Buy" or "Sell" labels with optional "Get Ready" pre-signals to prepare traders for potential setups.
Take-profit (TP) levels are automatically calculated based on user-defined points, with optional TP box visualization.
Multi-Timeframe Trend Analysis:
Analyzes trends across seven timeframes (1M, 5M, 15M, 30M, 1H, 4H, D) using EMA and VWAP to determine bullish, bearish, or neutral conditions.
Displays a futuristic AI-Trend Matrix dashboard showing trend direction, strength, and confidence levels for quick decision-making.
Customizable Signal Filters:
Momentum Filter: Ensures signals align with significant price changes, adjusted dynamically using ATR-based volatility.
Higher Timeframe Trend Filter: Requires signals to align with the trend of a user-selected higher timeframe (e.g., 1H).
Lower Timeframe Trend Filter: Prevents signals that conflict with the trend of a user-selected lower timeframe (e.g., 5M).
Volume Filter: Optionally requires above-average volume to confirm signals.
Breakout Filter: Optionally requires price to break previous highs/lows for signal validation.
Repeated Signal Restriction: Prevents consecutive signals in the same trend direction until the trend changes on a user-defined timeframe.
AI-Driven Adaptivity:
Incorporates Cumulative Volume Delta (CVD) to assess buying/selling pressure and classify market volatility (Low, Medium, High).
Uses ATR to dynamically adjust momentum thresholds, ensuring signals adapt to current market conditions.
Optional AI Market Analysis module predicts trends across multiple timeframes by combining trend, momentum, and volatility scores.
Visual Elements:
Plots CHoCH and BOS levels as horizontal lines with distinct colors (aqua for CHoCH sell, lime for CHoCH buy, fuchsia for BOS sell, teal for BOS buy).
Draws dynamic support and resistance trendlines based on short and long-term price action, colored by trend strength.
Displays TP levels and pivot highs/lows for easy reference.
How It Works
The script combines several technical analysis concepts to create a robust trading system:
Market Structure Analysis:
Pivot highs and lows are identified using a user-defined lookback period (Pivot Length).
CHoCH occurs when price crosses below a pivot high (bearish reversal) or above a pivot low (bullish reversal).
BOS occurs when price breaks a previous pivot low (bearish continuation) or pivot high (bullish continuation).
Trend and Momentum Integration:
Trends are determined by comparing price to EMA and VWAP on multiple timeframes.
Momentum is calculated as the percentage price change, with thresholds adjusted by ATR to account for volatility.
"Get Ready" signals appear when momentum approaches the threshold, preparing traders for potential CHoCH or BOS signals.
Signal Filtering:
Filters ensure signals align with user-defined criteria (e.g., trend direction, volume, breakouts).
The Restrict Repeated Signals option prevents over-signaling by requiring a trend change on a specified timeframe before generating a new signal in the same direction.
AI Market Analysis:
The optional AI module calculates a score for each timeframe based on trend direction, momentum, and volatility (ATR compared to its SMA).
Scores are translated into predictions (▲ for bullish, ▼ for bearish, — for neutral), displayed in a dedicated table.
CVD and Volatility Context:
CVD tracks buying vs. selling pressure by accumulating volume based on price direction.
Volatility is classified using CVD magnitude, influencing the script’s visual cues and signal sensitivity.
Why This Combination?
The integration of pivot-based structure analysis, multi-timeframe trend filtering, and AI-driven adaptivity addresses common trading challenges:
Precision: CHoCH and BOS signals focus on key market turning points, reducing noise from minor price fluctuations.
Context: Multi-timeframe analysis ensures trades align with broader market trends, improving win rates.
Adaptivity: ATR and CVD adjustments make the script responsive to changing market conditions, avoiding static thresholds that fail in volatile or quiet markets.
Customization: Extensive input options allow traders to adapt the script to their preferred markets, timeframes, and risk profiles.
Predictive Insight: The AI Market Analysis module provides forward-looking trend predictions, helping traders anticipate market moves.
This combination creates a self-contained system that balances responsiveness with reliability, making it suitable for both novice and experienced traders.
How to Use
Add to Chart:
Apply the indicator to your TradingView chart for any asset and timeframe.
Recommended timeframes: 5M to 1H for scalping/day trading, 4H to D for swing trading.
Configure Inputs:
Pivot Length: Adjust (default 5) to control sensitivity to pivot highs/lows. Lower values for faster signals, higher for stronger confirmations.
Momentum Threshold: Set the minimum price change (default 0.01%) for signals. Increase for stricter conditions.
Take Profit Points: Define TP distance (default 10 points). Adjust based on asset volatility.
Signal Filters: Enable/disable filters (momentum, trend, volume, breakout) to match your strategy.
Higher/Lower Timeframe: Select timeframes for trend alignment (e.g., 1H for higher, 5M for lower).
AI Market Analysis: Enable for predictive trend insights across timeframes.
Get Ready Signals: Enable to see pre-signals for potential setups.
Interpret Signals:
Buy/Sell Labels: Act on green "Buy" or red "Sell" labels, confirming with TP levels and trend direction.
Get Ready Labels: Yellow "Get Ready BUY" or orange "Get Ready SELL" indicate potential setups; prepare but wait for confirmation.
CHoCH/BOS Lines: Use aqua/lime (CHoCH) and fuchsia/teal (BOS) lines as key support/resistance levels.
AI-Trend Matrix: Check the top-right dashboard for trend strength (%), confidence (%), and timeframe-specific trends.
AI Market Analysis Table: If enabled, view predictions (▲/▼/—) for each timeframe to anticipate market direction.
Trading Tips:
Combine signals with other indicators (e.g., RSI, MACD) for additional confirmation.
Use higher timeframe trend alignment for higher-probability trades.
Adjust TP and signal distance based on asset volatility and trading style.
Monitor the AI-Trend Matrix for trend strength; values above 50% or below -50% indicate strong directional bias.
Originality
PowerHouse SwiftEdge AI v2.10 stands out due to its unique blend of:
Adaptive Signal Generation: ATR-based momentum thresholds and CVD-driven volatility context ensure signals remain relevant across market conditions.
Multi-Timeframe Synergy: The script’s ability to filter signals based on both higher and lower timeframe trends provides a rare balance of precision and context.
AI-Powered Insights: The AI Market Analysis module offers predictive capabilities not commonly found in traditional indicators, simulating institutional-grade analysis.
Visual Clarity: The futuristic dashboard and color-coded trendlines make complex data accessible, enhancing usability for all trader levels.
Unlike standalone pivot or trend indicators, this script integrates multiple layers of analysis into a cohesive system, reducing false signals and providing actionable insights without requiring external tools or research.
Limitations
False Signals: No indicator is foolproof; signals may fail in choppy or low-volume markets. Use filters to mitigate.
Timeframe Sensitivity: Performance varies by timeframe and asset. Test settings thoroughly.
AI Predictions: The AI Market Analysis is based on historical data and simplified scoring; it’s not a guaranteed forecast.
Resource Usage: Enabling all filters and AI analysis may slow performance on lower-end devices.
ULTIMATE Price Action Oscillator with Volume-Based S/R - MehtaULTIMATE Price Action Oscillator with Volume-Based S/R (UPO-PRO-VOL)
Key Features:
Smart Oscillator: Combines price action momentum with customizable smoothing.
Volume-Confirmed S/R: Identifies high-confidence Support/Resistance levels when price crosses above-average volume.
Real-Time Tracking: Displays S/R levels with timestamps (IST) in a clean table.
Visual Alerts: Dashed lines + labels mark key levels for easy spotting.
⚠️ STRONG DISCLAIMER
❌ This indicator is for educational purposes only.
❌ Not financial advice. Trading involves risk—always conduct your own analysis.
❌ No guarantee of accuracy. Past performance ≠ future results.
❌ Adjust settings carefully. Test in a demo account first.
❌ Volume thresholds may vary by asset. Customize Volume Threshold Multiplier as needed.
📝 How to Use:
S/R Signals: Green "S" = Support (oscillator crosses up with high volume). Red "R" = Resistance (oscillator crosses down with high volume).
Table: Tracks latest S/R prices and formation time (IST).
Tweak Settings: Adjust Oscillator Length, Smoothing, and Volume Threshold for your trading style.
Tip: Combine with trend analysis for higher-probability trades!
Script Settings (Default):
Oscillator Length: 5 (Can be adjusted upto a maximum value of 200)
Smoothing: 3
S/R Lookback: 100 bars
Volume Threshold: 1.5x avg volume
Volume Delta & Order Block Suite [QuantAlgo]Upgrade your volume analysis and order flow trading with Volume Delta & Order Block Suite by QuantAlgo, a sophisticated technical indicator that leverages advanced volume delta calculations, along with dynamic order block detection to provide deep insights into market participant behavior. By calculating the distribution of volume between buyers and sellers and tracking pivotal volume zones, the indicator helps traders understand the underlying forces driving price movements. It is particularly valuable for those looking to identify high-probability trading opportunities based on volume imbalances and key price levels where significant activity has occurred.
🟢 Technical Foundation
The Volume Delta & Order Block Suite utilizes sophisticated volume analysis techniques to estimate buying and selling pressure within each price candle. The core volume delta calculation employs a formula that estimates buy volume as: Volume × (Close - Low) ÷ (High - Low) , with sell volume calculated as the remainder of total volume. This approach assumes that when price closes near the high of a candle, most volume represents buying pressure, and when price closes near the low, most volume represents selling pressure.
For order block detection, the indicator implements a multi-step process involving volume pivot identification and price state tracking. It first detects significant volume pivot points using the ta.pivothigh function with a user-defined pivot period. It then tracks the market's order state based on whether the high exceeds the highest high or the low falls below the lowest low. When a volume pivot occurs, the indicator creates order blocks based on price levels at that pivot point. These blocks are continuously monitored for invalidation based on subsequent price action.
🟢 Key Features & Signals
1. Volume Delta Representation on Candles
The Volume Delta visualization on candles shows the buy/sell distribution directly on price bars, creating an immediate visual representation of volume pressure.
When buyers are dominant, candles are colored with the bullish theme color (default: green/teal).
Similarly, when sellers are dominant, candles are colored with the bearish theme color (default: red).
This visualization provides immediate insights into underlying volume pressure without requiring separate indicators, helping traders quickly identify which side of the market is in control.
2. Buy/Sell Pressure Information Table
The Volume Analysis Table provides a comprehensive breakdown of volume metrics across multiple timeframes, helping traders identify shifts in market behavior.
The table is organized into four timeframe columns:
Current Volume
1 Bar Before
1 Day Before
1 Week Before
For each timeframe, the table displays:
Buy volume: The estimated buying volume based on price action
Sell volume: The estimated selling volume based on price action
Total volume: The sum of buy and sell volume
Delta: The difference between buy and sell volume (positive when buyers are dominant, negative when sellers are dominant)
Additionally, the table shows both absolute values and percentage distributions, with trend indicators (Up, Down, or Neutral) at the bottom row of each timeframe column.
This multi-timeframe approach helps traders:
→ Identify volume imbalances between buyers and sellers
→ Track changes in volume delta across different periods
→ Compare current conditions with historical patterns
→ Detect potential reversals by watching for shifts in delta direction
The delta values are particularly useful as they provide a clear indication of market dominance – positive delta (Up) when buyers are dominant, and negative delta (Down) when sellers are dominant.
3. Order Blocks and Their Confluence
Order blocks represent significant price zones where volume pivots occur, potentially indicating areas of significant market participant activity.
The indicator identifies two types of order blocks:
Bullish Order Blocks (support): Highlighted with a green/teal color, these represent potential support areas where price might bounce when revisited
Bearish Order Blocks (resistance): Highlighted with a red color, these represent potential resistance areas where price might reverse when revisited
Each order block is visualized as a colored rectangle with a dashed line showing the average price within the block. The blocks are extended to the right until they are invalidated.
Order blocks can serve as key reference points for trading decisions, for example:
Support/resistance identification
Stop loss placement (beyond the opposite edge of the block)
Potential reversal zones
Target areas for profit-taking
When price approaches an order block, traders should look for confluence with the volume delta on candles and the information in the volume analysis table. Strong setups occur when all three components align – for example, when price approaches a bearish order block with increasing sell volume shown on the candles and in the volume table.
🟢 Practical Usage Tips
→ Volume Analysis and Interpretation: The indicator visualizes the buy/sell volume ratio directly on price candles using color intensity, allowing traders to immediately identify which side (buyers or sellers) is dominant. This information helps in assessing the strength behind price movements and potential continuation or reversal signals.
→ Order Block Trading Strategies: The indicator highlights significant price zones where volume pivots occur, marking these as potential support (bullish order blocks) or resistance (bearish order blocks). Traders can use these levels to identify potential reversal points, stop placement, and profit targets.
→ Multi-timeframe Volume Comparison: Through its comprehensive volume analysis table, the indicator enables traders to compare volume patterns across current, recent, daily, and weekly timeframes. This helps in identifying shifts in market behavior and confirming the strength of ongoing trends.
🟢 Pro Tips
Adjust Pivot Period based on your timeframe:
→ Lower values (3-5) for more frequent order blocks
→ Higher values (7-10) for stronger, less frequent order blocks
Fine-tune Mitigation Method based on your trading style:
→ "Wick" for more conservative invalidation
→ "Close" for more lenient order block survival
Look for confluence between components:
→ Strong volume delta in the expected direction when price touches an order block
→ Corresponding patterns in the volume analysis table
→ Overall market context aligning with the expected direction
Use for multiple trading approaches:
→ Support/resistance trading at order blocks
→ Trend confirmation with volume delta
→ Reversal detection when volume delta changes direction
→ Stop loss placement using order block boundaries
Combine with:
→ Trend analysis using trend-following indicators for trade confirmation
→ Multiple timeframe analysis for strategic context
AstroTrading_DragonCombine1. Table Setup and User Inputs
Table Position and Font Size:
The script begins by asking the user to select a table position (e.g. Top Right) and a font size (Small, Medium, Large, Huge) via input options.
pinescript
Kopyala
positionInput = input.string("Sağ Üst Köşe", title="Tablo Konumu", options= )
fontSizeInput = input.string("Orta", title="Yazı Punto Büyüklüğü", options= )
Table Creation:
A table is created using table.new with 6 rows and 4 columns. The location of the table is determined by the selected input. This table will later display the name, entry, target, and stop levels for each of the five strategies.
2. Variable Declarations
The script defines several persistent variables to store levels for each indicator. These include:
Entry, target, and stop levels for each of the five sub-indicators (labeled as _1, _2, _3, _4, and _5).
Examples include targetLevel_1, fibLow_1, lastEntry_1, lastTarget_1, etc.
3. Indicator 1 – AstroTrading_AlphaBalance
Logic:
This part examines the previous candle’s high and low to compute its range. It then defines two conditions:
conditionUp_1: When the current close exceeds the previous high by at least 50% of the previous range.
conditionDown_1: When the current close falls below the previous low by 50% of the previous range.
Action:
Depending on whether the move is upward or downward, the script sets:
For an upward move:
fibLow_1 is set to the current low.
The entry level is taken as the current high.
The target is computed by taking the high and subtracting –0.786 times the range (this negative multiplier inverts the move).
The stop is set at the previous low.
For a downward move, similar logic applies with reversed roles.
Purpose:
This module generates a primary signal (AlphaBalance) based on extreme candle movements relative to the prior candle’s range.
4. Indicator 2 – AstroTrading_CandleElongation
Higher Timeframe Data:
The script uses the request.security function to obtain high, low, close, and open values from a user-specified timeframe.
Fibonacci Extension Calculation:
A function fiboExtension calculates two Fibonacci extension levels (approximately 0.786 and 1.618 multipliers) based on three price points.
Signal Conditions:
It checks if the previous candle (two bars ago) meets certain criteria relative to its open, and if the current candle’s close confirms an elongation move.
Output:
If conditions are met, the script sets:
candleEntry_2 to the lower Fibonacci level,
candleTarget_2 to the higher Fibonacci extension,
candleStop_2 to the current low (for a bullish setup) or high (for bearish).
Purpose:
This sub-indicator looks to capture significant candle elongation moves by using Fibonacci extension levels to define entry, target, and stop.
5. Indicator 3 – AstroTrading_FlaGama
Similar to a Flag Formation:
Like the previous “FlaGama” indicator, it checks if the current close is more than 50% beyond the previous candle’s high (conditionUp_3) or below the previous low (conditionDown_3).
Bar Coloring:
If either condition is met, the bar is colored orange to signal an extreme move.
Signal Generation:
Depending on the move’s direction:
Bullish Setup:
Calculates a Fibonacci level at 78.6% from the current low to high.
Sets the entry at this Fibonacci level.
The target is computed by adding the difference between the current high and the Fibonacci level to the current high.
The stop is set at the current low.
Bearish Setup:
Mirrors the Fibonacci calculation to derive a level for short entry.
The target is set below the current low, and the stop is at the current high.
Purpose:
The FlaGama section provides confirmation signals when extreme moves occur, helping traders decide on potential reversals.
6. Indicator 4 – AstroTrading_HermDown
EMA Crossover:
An EMA (111-period) is calculated. A crossover of the EMA above the close triggers a “kesilme” (cutoff) event.
First Candle Identification:
Once a crossover is detected, the next candle’s close is monitored. If that candle’s close remains below the cutoff level, it is considered the “first candle” of the HermDown setup.
Fibonacci Retracement:
It then calculates the highest high over the last 30 bars and derives a target level (fibNeg0618_4) at about 48.6% retracement from that high.
Signal Levels:
The entry is the cutoff close, the target is the calculated Fibonacci level, and the stop is the low of the cutoff candle.
Purpose:
This module aims to capture bearish reversals (HermDown) when the price drops sharply below an EMA, using Fibonacci retracement as a guide.
7. Indicator 5 – AstroTrading_HermUp
EMA Crossunder:
Similarly, an EMA (111-period) is used. A crossunder (EMA crossing below the close) signals a potential bullish reversal.
First Candle Confirmation:
The next candle’s close is checked to confirm the move.
Fibonacci Level:
A Fibonacci extension (approximately 61.8% of the distance from the cutoff close to the high) is computed to serve as the target.
Signal Levels:
The entry is set at the cutoff close, the target is the Fibonacci level, and the stop is set at the low.
Purpose:
This section captures bullish reversal signals (HermUp) when the price moves above an EMA.
8. Displaying Levels in a Table
Aggregating Data:
The script gathers the entry, target, and stop levels from all five sub-indicators.
Table Layout:
The table displays five rows (one for each indicator) with four columns:
Indicator name (e.g., “AlphaBalance”, “CandleElongation”, “FlaGama”, “HermDown”, “HermUp”)
Entry level
Target level
Stop level
Color Coding:
Entry cells have a blue background.
Target cells are colored green if above the current close or red if below.
Stop cells are given a gray background.
Purpose:
This consolidated view allows traders to quickly assess all key levels from different strategies on the chart.
Summary
The “AstroTrading_DragonCombine” indicator is a multi-faceted tool that merges five distinct trading setups into one comprehensive display. Each sub-indicator utilizes a unique method—ranging from extreme candle moves and Fibonacci extensions to EMA crossovers—to determine entry, target, and stop levels. These levels are then neatly summarized in a table overlay on the chart. By combining these approaches, traders can gain a broader perspective on market conditions and potential reversal points, enhancing their decision-making process while adhering to sound risk management principles.
This explanation is written to meet TradingView’s script publication standards, providing a clear, objective, and detailed overview of the indicator’s functionality and logic.
Multi Asset & TF Stochastic
Multi Asset & TF Stochastic
This indicator allows you to compare the stochastic oscillator values of two different assets across multiple timeframes in a single pane. It’s designed for traders who want to analyse the momentum of one asset (by default, the chart’s asset) alongside a second asset of your choice (e.g., comparing EURUSD to the USD Index).
How It Works:
Main Asset:
The indicator automatically uses the chart’s asset for the primary stochastic calculation. You have the option to adjust the timeframe for this asset using a dropdown that includes TradingView’s standard timeframes, a "Chart" option (which automatically uses your chart’s timeframe), or a "Custom" option where you can type in any timeframe.
Second Asset:
You can enable the display of a second asset by toggling the “Display Second Asset” option. Choose the asset symbol (default is “DXY”) and select its timeframe from an identical dropdown. When enabled, the script calculates the stochastic oscillator for the second asset, allowing you to compare its momentum (%K and %D lines) with that of the main asset.
Stochastic Oscillator Settings:
Customize the %K length, the smoothing period for %K, and the smoothing period for %D. Both assets’ stochastic values are calculated using these parameters.
Visual Display:
The indicator plots the %K and %D lines for the main asset in prominent colours. If the second asset is enabled, its %K and %D lines are also plotted in different colours. Additionally, overbought (80) and oversold (20) levels are marked, with a midline at 50, making it easier to gauge market conditions at a glance.
%D line can be toggled off for a cleaner view if required:
Asset Information Table:
A table at the top-centre of the pane displays the active asset symbols—ensuring you always know which assets are being analysed.
How to Use:
Apply the Indicator:
Add the script to your chart. By default, it will use the chart’s current asset and timeframe for the primary stochastic oscillator.
Adjust the Main Asset Settings:
Use the “Main Asset Timeframe” dropdown to select a specific timeframe for the main asset or stick with the “Chart” option for automatic syncing with your current chart.
Enable and Configure the Second Asset (Optional):
Toggle on “Display Second Asset” if you wish to compare another asset. Select the desired symbol and adjust its timeframe using the provided dropdown. Choose “Custom” if you need a timeframe not listed by default.
Review the Plots and Table:
Observe the stochastic %K and %D lines for each asset. The overbought/oversold levels help indicate potential market turning points. Check the table at the top-centre to confirm the asset symbols being displayed.
This versatile tool is ideal for traders who rely on momentum analysis and need to quickly compare the stochastic signals of different markets or instruments. Enjoy seamless multi-asset analysis with complete control over your timeframe settings!
Crodl Position Size CalculatorThe Crodl Size Position Calculator is a powerful and intuitive tool designed for traders to calculate their position size, risk, and reward before entering a trade. This indicator simplifies trade planning by providing clear calculations of key metrics such as risk-to-reward ratio, position size, expected profit, and current PnL (Profit and Loss).
Features:
Dynamic Input Fields: Customize your trade parameters, including risk loss, leverage, entry price, stop loss, and take profit.
Position Size Calculation: Automatically calculate the number of units to trade based on your risk tolerance and leverage.
Risk/Reward Ratio: See the ratio of potential profit to risk for informed decision-making.
Real-Time PnL Tracking: Monitor your current profit or loss directly on the chart.
Expected Profit Projection: Displays the profit potential based on your risk-to-reward ratio.
Position Plotting: Visualize your entry, stop loss, and take profit levels directly on the chart with color-coded lines and zones.
User-Friendly Table: A detailed table provides clear visibility of all trade metrics, including:
Risk Loss
Leverage
Entry Price
Stop Loss
Take Profit
Risk/Reward Ratio
Bet Amount
Crypto Units
Real-Time PnL
Expected Profit
How It Works:
Set Your Parameters: Input your desired risk loss, leverage, entry price, stop loss, and take profit levels in the settings.
Get Instant Results: The indicator calculates position size, PnL, expected profit, and other key metrics.
Visualize on the Chart: See your entry, stop loss, and take profit levels plotted on the chart for clarity.
Review the Trade Table: A table at the bottom-right of the screen summarizes all calculations and updates dynamically as the market price changes.
Who is it for? This indicator is ideal for traders of all experience levels, whether you're a beginner learning risk management or a professional looking for efficient trade planning tools.
Customization Options:
Adjust the size of the plotted position zones.
Enable or disable zone plotting for a cleaner chart.
Tailor inputs to match your trading strategy.
Note: Always use proper risk management and ensure your trading parameters align with your personal trading goals and strategy. Use at Own Risk
MTF RSI CandlesThis Pine Script indicator is designed to provide a visual representation of Relative Strength Index (RSI) values across multiple timeframes. It enhances traditional candlestick charts by color-coding candles based on RSI levels, offering a clearer picture of overbought, oversold, and sideways market conditions. Additionally, it displays a hoverable table with RSI values for multiple predefined timeframes.
Key Features
1. Candle Coloring Based on RSI Levels:
Candles are color-coded based on predefined RSI ranges for easy interpretation of market conditions.
RSI Levels:
75-100: Strongest Overbought (Green)
65-75: Stronger Overbought (Dark Green)
55-65: Overbought (Teal)
45-55: Sideways (Gray)
35-45: Oversold (Light Red)
25-35: Stronger Oversold (Dark Red)
0-25: Strongest Oversold (Bright Red)
2. Multi-Timeframe RSI Table:
Displays RSI values for the following timeframes:
1 Min, 2 Min, 3 Min, 4 Min, 5 Min
10 Min, 15 Min, 30 Min, 1 Hour, 1 Day, 1 Week
Helps traders identify RSI trends across different time horizons.
3. Hoverable RSI Values:
Displays the RSI value of any candle when hovering over it, providing additional insights for analysis.
Inputs
1. RSI Length:
Default: 14
Determines the calculation period for the RSI indicator.
2. RSI Levels:
Configurable thresholds for RSI zones:
75-100: Strongest Overbought
65-75: Stronger Overbought
55-65: Overbought
45-55: Sideways
35-45: Oversold
25-35: Stronger Oversold
0-25: Strongest Oversold
How It Works:
1. RSI Calculation:
The RSI is calculated for the current timeframe using the input RSI Length.
It is also computed for 11 additional predefined timeframes using request.security.
2. Candle Coloring:
Candles are colored based on their RSI values and the specified RSI levels.
3. Hoverable RSI Values:
Each candle displays its RSI value when hovered over, via a dynamically created label.
Multi-Timeframe Table:
A table at the bottom-left of the chart displays RSI values for all predefined timeframes, making it easy to compare trends.
Usage:
1. Trend Identification:
Use candle colors to quickly assess market conditions (overbought, oversold, or sideways).
2. Timeframe Analysis:
Compare RSI values across different timeframes to determine long-term and short-term momentum.
3. Signal Confirmation:
Combine RSI signals with other indicators or patterns for higher-confidence trades.
Best Practices
Use this indicator in conjunction with volume analysis, support/resistance levels, or trendline strategies for better results.
Customize RSI levels and timeframes based on your trading strategy or market conditions.
Limitations
RSI is a lagging indicator and may not always predict immediate market reversals.
Multi-timeframe analysis can lead to conflicting signals; consider your trading horizon.
Line Break Chart StrategyHello All!
We should not pass this year without a gift!
My last publication in 2024 is Complete Line Break Chart Strategy with many features!
What is Line Break Chart?
" Line Break is a Japanese chart style that disregards time intervals and only focuses on price movements, similar to the Kagi and Renko chart styles. Line Break charts form a series of up and down bars (referred to as lines). Up lines represent rising prices, and down lines represent falling prices. New confirmed lines only form on the chart when closing prices break the range covered by previous lines. Users can control the number of past lines used in the calculation via the "Number of Lines" input in the chart settings. The typical "Number of Lines" setting is 3, meaning the chart forms a new up line when the closing price is above the high prices of the last three lines, and it forms a new down line when the closing price is below the past three lines' low prices. If the current price is higher, it is an up line and if it is lower, it is a down line. If the current closing price is the same or the move in the opposite direction is not large enough to warrant a reversal, l then no new line is draw n" by Tradingview. You can find it here
Now let's start examining the features of the indicator:
By using Line break reversals it shows trend on the main chart. You can create alert .
Moreover, you can decide which trade should be taken by using Risk Management in the indicator. You can set the " Maximum Risk " and then if the risk is more than you set then the trade is not taken. When trend changed it checks the distance between reversal level and open price and compare it with the Maximum Risk
Breakout:
It can find breakouts and shows on the chart. You can create alert for breakouts
It can show breakouts on the main chart:
Flip-Flops:
Upon looking at set of price break charts, the trader will notice that there are instances when uptrend blocks is followed by one reversal block, and then by a reversal to a series of uptrend blocks. The opposite is also possible: a series of downtrend blocks is followed by one reversal box and then by an immediate reversal to downtrend. This price action is called a " Flip-Flop ". This structure usually produces trend continuation signal. when we see this then we better use Buy/Sell stop order. lets see this on the chart:
Temporal Sequence Table:
Sequence frequency shows the frequency distribution of the number of sequential highs and the number of sequential lows that have been generated. This is quite important to the trader who is seeking to join a trend or put on a trade when the price break reverses into a new trend direction. For example, if the pattern over the past year has been that there never were more than nine consecutive high closes, it would make sense not to enter a position late into the sequence of new high closes.
also you can see market structure. I have tried to formalize it and show it under the table. so you can understand if it's choppy market.
"Number of Lines" has very important role. While using low time frames such seconds/minutes time frame you may want to choose higher number of lines such 5,6. ( this may minimize the risk of a whipsaw )
Gaps feature:
You can set Gaps on/off. if Gaps on then you can see how long it takes for each box
Reversal and Continuation Probability:
The script calculated Reversal level and Continuation probability of the trend by using Sequence frequency.
It also shows unconfirmed box and current closing price level:
Last but not least it has Overlay option for all items, and can show all items in the main chart!
P.S. I added alerts :)
Wish you all a happy new year!
Enjoy!
BTC Dominance/Price vs Alts Logic (QKWESI)BTC Dominance & Price vs. Alts Indicator
Overview: The BTC Dominance & Price vs. Alts indicator is designed to help cryptocurrency traders understand the relationship between Bitcoin's market dominance, its price movements, and the subsequent impact on altcoin trends. By analyzing these key metrics, the indicator provides actionable insights to inform trading decisions.
Key Features:
BTC Dominance Tracking: Monitors Bitcoin's dominance percentage to assess its influence over the crypto market.
Real-Time BTC Price: Displays the latest Bitcoin price movements for informed analysis.
Alts Trend Prediction: Predicts altcoin behavior—such as Pump, Dump, Stable, or Increase—based on the combined trends of BTC Dominance and BTC Price.
Color-Coded Table: Presents data in a structured table with color indicators for easy interpretation.
Trend Indicators: Utilizes clear symbols to represent the direction of each metric, aiding quick decision-making.
Logic Table:
BTC Dominance BTC Price Alts Result
Increases Increases Decrease
Increases Decreases Dump
Increases Stable Stable
Decreases Increases Pump
Decreases Decreases Stable
Decreases Stable Increase
Explanation:
Increases in BTC Dominance & Increases in BTC Price: Altcoins are likely to Decrease in value.
Increases in BTC Dominance & Decreases in BTC Price: Altcoins may Dump, experiencing a sharp drop.
Increases in BTC Dominance & Stable BTC Price: Altcoins are expected to remain Stable.
Decreases in BTC Dominance & Increases in BTC Price: Altcoins may Pump, gaining significant value.
Decreases in BTC Dominance & Decreases in BTC Price: Altcoins are likely to remain Stable.
Decreases in BTC Dominance & Stable BTC Price: Altcoins may Increase moderately.
Benefits:
Informed Trading Decisions: Leverage BTC metrics to anticipate altcoin movements.
Efficient Market Analysis: Quickly assess market conditions without multiple indicators.
Structured Insights: The color-coded table and trend indicators provide a clear overview of key market dynamics.
ds-Income Statement Analyzer for TradersPURPOSE: Identifies trends in Revenue, Margins, and Earnings (RME), providing a quick indication of areas that may warrant further focus.
FOCUS:
This tool focuses exclusively on quarterly data, making it especially useful for traders who follow the styles of William O'Neil, Mark Minervini, and David Ryan. Built on the concept that fundamental trends support technical price trends, this indicator is designed to assist swing and position traders in analyzing income statements by highlighting recent trends in revenue, margins, and earnings. It requires three quarters of data to establish a trend, emphasizing the last three quarters. Tools and indicators should 'tell something useful,' and in this case, the tool reveals whether revenue, margins, and earnings are expanding, contracting, or remaining flat, as well as whether these movements are accelerating or decelerating. Finally, built-in logic offers an at-a-glance interpretation of whether a stock warrants closer examination of its fundamental and technical data.
SETTINGS:
# Qtrs to Include: Allows you to select how many quarters of available data to display. (5-16)
Size: Allows you to adjust the size of the displayed table.
KPI Data Text Size: Allows you to adjust the size of the text in the KPI Row. Some text here is more verbose than others.
Position: Allows you to position the table.
Show Minervini 2Qtr Avgs.?: Hover of the “i” in settings for explanation.
Show Estimates vs Actuals?: Hover of the “i” in settings for explanation.
Emphasized Data Only in Headline Indicator?: Hover of the “i” in settings for explanation.
TABLE SECTIONS
Vertically: The table is divided into three sections: Revenues, Profit Margins, and Earnings.
Horizontally:
The top row contains section headers and key information.
The second row includes column headers and summary indicator symbols.
The main body displays quarterly data, with a default of 5 quarters and a maximum of 16.
Analysis sections include 3Q Trend, KPI, and ATH.
The bottom row shows the version number and provides a column symbol indicator for each data column.
TABLE - TOP ROW (Left to Right):
SYM: Displays the symbol being viewed.
Qtrs Avail: Shows the quarters of data available from TradingView, typically up to a maximum of 32 quarters, or 8 years. If this displays less than 8 years, the company is relatively young.
REVENUES: Header label for the Revenues section. To its right is a symbol that indicates the worst case from the bottom row of symbols, based on your settings.
PROFIT MARGINS: Header label for the Profit Margins section. To its right is a symbol that indicates the worst case from the bottom row of symbols, based on your settings.
EARNINGS: Header label for the Earnings section. To its right is a symbol that indicates the worst case from the bottom row of symbols, based on your settings.
TABLE - HEADER ROW:
This row displays the column header labels. Note the Emphasized column headers “yellow text” highlight the most important column data “Rev Actual ($)”, “Rev YoY Qtr Chg (%)”, “Net Margin (NM) (%)”, “NP YoY Qtr Chg (%)”, “EPS YoY Qtr Chg (%)”. This can be modified in the settings. If you hover over the header, a label will pop up to provide more details.
TABLE BODY ROWS: Shows up to 16 rows of quarterly data.
A black or blank background cell without text indicates that data is unavailable from TradingView. Green text shows a value higher than the prior quarter, while red text shows a value lower than the prior quarter, allowing you to quickly spot trends within each data column. A yellow background highlights cells with negative values, marking them as unfavorable. The yellow cells indicate data points that ideally should not be negative.
ANAYSIS ROWS: Shown with brown background.
3Q TREND: Analyzes the last three quarters of data in each column to determine if the trend is rising, falling, or flat.
KPI: Key Performance Indicator. Highlights critical information, such as whether the current quarter is an all-time high (ATH), momentum (MOM) is sideways or accelerating upward, or percentage margins have fallen below all-time highs. You may sometimes see "struct." in the cell here which indicates there is a structural issue. e.g., Net Margin is higher than Operating, EBITDA, or Gross Margin. This might reflect a one-time event that boasted earnings and is worth investigating.
ATH: All-time-high value. If KPI shows ATH then the value in this cell should be equal to the most recent quarters value.
TABLE - BOTTOM ROW (Left to Right):
Version Number: Displays the version number of the indicator code.
Column-Specific Symbol Indicator: Shown at the bottom of each column, this indicator assesses the data in that column for trends, performance, and other factors.
Symbols include:
Green Checkmark: Indicates acceptable performance.
Yellow Triangle: Suggests caution; a closer inspection of this column's data may be warranted.
Orange Diamond: Signals extreme caution, more serious than the Yellow Triangle but not as critical as a Red Flag.
Red Flag: Warns of undesirable performance characteristics associated with this column's data, indicating potential danger.
Minervini CODE33 from Trade Like a Stock Market Wizard
Code 33 situation, three quarters of acceleration in earnings, sales, and profit margins. This can be observed in this indicator by focusing on the “Rev YoY Qtr Chg (%)”, “Net Margin (NM) (%)”, “EPS YoY Qtr Chg (%)” looking for the green text in the last two quarters of data. Remember green text simply indicates the value is greater than the prior value. Note I have chosen not to represent the “Net Margin (NM) (%)” as a Year-over-Year (YoY) figure. If you wish to see the bottom line represented as a YoY, you can approximate that by using the “NP YoY Qtr Chg (%)”.
Minervini Smoothing Volatility: Quarterly financial results can be volatile. By averaging the earnings, sales, or other key financial metrics over the last two quarters, Minervini aims to reduce the impact of any one-off events or seasonal fluctuations, providing a more stable view of the company's operational performance. In this indicator I incorporated it for “Rev 2Qtr Chg (%)” and “NP 2Qtr Avg Chg (%)” which averages the last two quarters of Quarter-over-Quarter (QoQ) change.
Financial GrowthOverview
The script named "Financial Growth" is written in Pine Script v5.
It is designed to display various financial metrics and ratios in a tabular format on TradingView charts.
The code pulls financial data like revenue, net income, EPS, etc., and presents these metrics along with ratios such as P/E, D/E, and others.
The table can display these values for different time periods such as quarterly, yearly, or trailing twelve months (TTM).
Additionally, it can show QoQ (Quarter-over-Quarter), YoY (Year-over-Year), and CAGR (Compound Annual Growth Rate) changes for selected financial items.
The code includes plotting options for visual representation of financial data and labels.
Explanation of Code Sections
Revision Notes
The revision notes indicate changes made in different versions of the code.
Each version update introduces new financial metrics and code restructuring.
Indicator Definition
indicator("Financial Growth", overlay=false, format=format.volume): Defines a standalone indicator with the name "Financial Growth". The overlay=false parameter ensures it is not overlaid on the chart but shown in a separate panel.
Text Sizes and Table Positions
Different text sizes and table positions are defined using variables such as text_size_SMALL, tb_pos_POS01, etc.
These variables help in formatting the visual display of the table and labels.
Financial Items
The script defines several financial items like revenue, net income, EPS, EBITDA, debt, and ratios such as ROE, ROA, and D/E.
Each financial item is assigned a corresponding unique identifier, e.g., _revenue_id = 'TOTAL_REVENUE'.
Calculated Financial Ratios
Ratios such as P/E, P/BV, P/S, and P/FCF are calculated using:
price_to_earning
price_to_book_value
price_to_sales
price_to_free_cash_flow
These calculations are done using request.financial function calls.
User Inputs
The code uses input functions to allow users to select financial items and time periods:
financial_item_selection_01 and financial_item_selection_02 enable the selection of financial metrics.
period_selection allows users to choose between periods like FQ (Fiscal Quarter), FY (Fiscal Year), and TTM (Trailing Twelve Months).
Users can control the table's visibility and the display of QoQ, YoY, and CAGR changes using input.bool() settings.
Financial Data Retrieval
The function retreive_financial_data(_financial_item, _period) retrieves financial data based on the selected financial item and period.
It uses the request.financial function to get data for a specific ticker.
Table Creation and Formatting
The script uses table.new() to create a table for displaying financial data.
The table’s headers and values are populated using custom functions like header_column, date_column, and value_column.
QoQ, YoY, and CAGR columns are conditionally displayed based on the user’s input settings.
Plotting Data
The script can also plot the selected financial metrics using the plot() function.
Labels for plotted data are created using the label.new() function.
Handling of Bar States
The barstate.islast condition ensures that the table and plots are only updated at the last bar state, which optimizes performance and prevents unnecessary calculations.
Code Formatting and Optimization
Proper use of variables, functions, and conditional statements adheres to TradingView’s guidelines for efficient Pine Script development.
The use of ignore_invalid_symbol=true in request.financial calls ensures the script handles non-existent financial data gracefully.
Key Functions
is_calculated_data(_financial_item)
Determines whether a given financial item is a calculated metric (e.g., P/E, P/BV) instead of being directly available from TradingView’s data.
get_financial_id(_financial_item)
Returns the financial identifier based on the selected item (e.g., TOTAL_REVENUE for revenue).
get_value_formating(_financial_item)
Returns the appropriate value divider, suffix, and formatting style based on the selected financial item.
create_array(arrayId, val)
Adds a new value to a specified array, used for storing historical financial data for table display.
get_cagr(_data_array, _id, _idmax)
Calculates the compound annual growth rate (CAGR) based on the given data array and index.
GL LineIntroduction
The GL Line Indicator is a versatile tool designed to assist traders in identifying market trends by utilizing three different types of moving averages (EMA, SMA, VWMA) across multiple timeframes. This indicator provides a comprehensive view of market conditions, making it easier to spot potential trading opportunities.
Features
Multiple Moving Average Types:
Choose between Exponential Moving Average (EMA), Simple Moving Average (SMA), and Volume Weighted Moving Average (VWMA) for more tailored analysis.
Triple Timeframe Analysis:
Analyze trends across three different timeframes (Main, Secondary, Tertiary) to get a clearer picture of market direction.
Configurable Parameters:
Customizable lengths for fast and slow-moving averages. Adjustable ATR length and multiplier to refine trend detection sensitivity.
Visual Trend Indication:
Bullish and bearish trends are marked with color-coded lines and fills, enhancing visual clarity.
Confluence Table:
Optional confluence table that shows trend direction across the selected timeframes, aiding in decision-making.
How It Works
Main Trend Calculation:
Select the type of moving average and set the lengths for fast and slow MAs. The difference between these MAs, adjusted by the ATR multiplier, determines the trend direction.
Secondary and Tertiary Trends:
Similar calculations are done for secondary and tertiary timeframes, providing a broader market overview.
Trend Direction and Plotting:
The indicator plots the moving averages and fills the area between them with colors to denote bullish (green) and bearish (red) trends.
How to Use
Select Moving Average Type:
Choose between EMA, SMA, or VWMA based on your trading strategy.
Set Lengths and Multipliers:
Customize the lengths for the fast and slow-moving averages and adjust the ATR length and multiplier for better trend sensitivity.
Analyze Trends:
Use the color-coded plots and fills to identify market trends and make informed trading decisions.
Check Confluence Table:
Optionally display the confluence table to see trend directions across different timeframes.
Disclaimer
This indicator is designed to work best when the secondary and tertiary trends are set to higher timeframes than the chart's timeframe. Using higher timeframes for additional trends provides a broader market perspective and enhances the reliability of trend signals.
IDX Financials v2This indicator adds financial data, ratios, and valuations to your chart. The main objective is to present financial overview that can be glanced quickly to add to your considerations.
The visualization of the indicator consists of two parts:
A. Plots (lines alongside the candlestick)
B. Financial table on the right. Drag your candlestick to the left to provide blank area for the table.
Programatically, the financial data is obtained by using these Pine API:
request.earnings(...) API for the EPS values that are used by the price at average PER line , and
request.financial(..) API for the rest of financial data required by the indicator.
See What financial data is available in Pine for more info on getting financial data in Pine.
A. THE PLOTS
The plots produces two lines, price at average PER in blue and price at average PBV line in pink, calculated over some adjustable time period (the default is one year). By default, only price at average PER line is shown.
Note that PER stands for Price to Earning Ratio.
The price at average PER line shows the price level at the average PER. It is calculated using formula as follows:
line = AVGPER * EPSTTM
where AVGPER is the average PER over some time period (default is one year, adjustable) and EPSTTM is the standardized EPS TTM.
Note that the EPS is updated at the actual time of earning report publication , and not at standard quarter dates such as March 31st, Dec 31st, etc.. This approach is chosen to represent the actual PE at the time.
The price at average PBV line (PBV stands for Price to Book Value), which can be enabled in settings, shows the price at average PBV. It is calculated using formula as follows:
line = AVGPBV * BVPS
where AVGPBV is the average PBV over some period of time (default is one year, adjustable) and BVPS is the book value per share. Note that the PBV is clipped to range to avoid values that are too small/large.
Also note that unlike PER, the BVPS is updated at each quarterly date (such as March 31st, Dec 31st, etc.).
Apart from those lines, some values are written to the status line (i.e. the numbers next to indicator name), which represent the corresponding value at the currently hovered bar:
PER TTM
Average PER
Std value (zvalue) of PER TTM (equal to = (PERTTM - AVGPER)/STDPER)
PBV
The meaning for these abbreviations should be straightforward.
Using the price at average PER line
There are several ways to use the price at average PER line .
You can quickly get the sense of current valuation by seeing the price relative to the price at average PER line . If the price is above the line, the valuation is higher than the average valuation, and vice versa if the price is lower.
The distance between the price and the average is measured in unit of standard deviation. This is represented by the third number in the status line. Value zero indicates the price is exactly at the average PER line. Positive value indicates price is higher than average, and negative if price is lower than average. Usually people use value +2 and -2 to indicate extreme positions.
The second way to use the line is to see how the line jumps up or down at the earning report date . If the line jumps up, this indicates the increase of EPSTTM. And vice versa when the line jumps down.
When EPSTTM is trending up over several quarters, or if EPSTTM is expected to go up, usually the price is also trending up and the valuation is over the average. And vice versa when EPSTTM is trending down or expected to go down. Deviation from this pattern may present some buying or selling opportunity.
B. THE FINANCIAL TABLE
The second visual part is the financial table. The financial table contains financial information at the last bar . It has four sections:
1. Revenue
2. Income
3. Valuations
4. Ratios
Let's discuss them in detail.
1. Revenue and income sections
The revenue and income table are organized into rows and columns.
Each row shows the data at the specified time frame, as follows:
The first four rows shows quarterly revenue/income of the last four quarters.
Then followed by TTM data.
Then followed by forecast of next quarter revenue/income, if such forecast exists. Note the "(F)" notation next to the quarter name.
Then followed by forecast of TTM data of next quarter (only for income), if such forecast exists. Note the "(F)" notation next to the TTM name.
The columns of revenue and income sections show the following:
The time frame information (such as quarter name, TTM, etc.)
The revenue/income value, in billions or millions (configurable).
YoY (year on year) growth, i.e. comparing the value with the value one year earlier, if any.
QoQ (quarter on quarter) growth, i.e. comparing the value with previous quarter value, if any.
GPM/NPM (gross profit margin or net profit margin), i.e. the margin on the specified time period.
Using the Revenue and Income table
The table provides quick way to see the revenue and income trend. You can see the YoY growth as well as QoQ, if that is applicable (non seasonal stocks). You can also see how the margins change over the periods.
The values are also presented with relevant background color . Green indicates "good" value and red indicates "bad" value. The intensity represents how good/bad the value is. The limits of the good and bad values are currently hardcoded in the script.
2. Valuations section
The valuation shows current stock valuation. The section is organized in rows and columns. Each row contains one type of valuation criteria, as follows:
PER (Price Earning Ratio)
Next quarter PER forecast (marked by "(F)" notation) when available
PBV (Price to Book value)
For each valuation criteria, several values are presented as columns:
The current value of the criteria. By current, it means the value at the last bar.
The one year standard deviation position
The three years standard deviation position
3. Ratios Section
The ratios section contains the following useful financial ratios:
ROA (Return on Asset), equal to: NET_INCOME_TTM / TOTAL_ASSETS
ROE (Return on Equity), equal to: NET_INCOME_TTM / BOOK_VALUE_PER_SHARE
PEG (PER to Growth Ratio), equal to PER_TTM / (INCOME_TTM_GROWTH*100)
DER (Debt to Equity Ratio), taken from request.financial(syminfo.tickerid, "DEBT_TO_EQUITY", "FQ")
DPR (Dividend Payout Ratio), taken from request.financial(syminfo.tickerid, "DIVIDEND_PAYOUT_RATIO", "FY")
Dividend yield, equal to (DPR * (NET_INCOME_TTM / TOTAL_SHARES_OUTSTANDING)) / close
KNOWN BUGS
Currently does not handle when the financial quarter contains gap, i.e. there is missing quarter. This usually happens on newly IPO stocks.
LevelUp^ Trend Follower All-In-OneLevelUp is an all-in-one collection of the most popular trend following tools merged into one indicator. LevelUp automates many aspects of technical analysis to find and highlight chart patterns and signals based on the principles of William O'Neil, Stan Weinstein, Jesse Livermore and other well-known trend followers.
The 10-EMA, 21-EMA and 50-SMA are foundational in LevelUp. LevelUp uses the term moving average alignment to refer to patterns that meet your specific requirements as it relates to moving averages and their relationship to price and one another. For example, you can request the start of MA alignment begin when the low is > 21-EMA, the 21-EMA is > 50-SMA and the 50-SMA is trending up.
LevelUp includes indicators for intraday, daily and weekly timeframes.
Key Features:
Daily Timeframe:
▪ Configure moving average alignment and preferred price action.
▪ Custom RS Line:
▪ Symbol overlays showing new RS highs.
▪ Custom moving average with optional cloud.
▪ View 10-week SMA on daily chart.
▪ Set exit criteria based on moving averages and % below entry.
▪ Stats table to simplify calculating entry/exit points.
▪ Signals table to quickly view if stock is trending up.
▪ Power trend tools and analysis.
Daily & Weekly Timeframe:
▪ Flat base detection with custom configuration.
▪ Consolidation detection with custom configuration.
▪ Highlight lower lows and lower closes (pullbacks).
▪ Highlight 52-week highs.
Weekly Timeframe:
▪ Customizable tight closes.
▪ Customizable up weeks.
Intraday Timeframe:
▪ View daily 10-EMA, 21-EMA and 50-SMA.
▪ 1-day and 2-day AVWAP.
▪ 5-day moving average.
All Timeframes:
▪ Marked highs/lows with lines showing support/resistance.
▪ Custom moving averages.
Daily Chart Examples
The following charts show a range of examples on customization and features in LevelUp when viewing a daily chart.
Weekly Chart Examples
Weekly charts are helpful for identifying longer-term trends and patterns. Trend followers often limit the number of indicators and signals on a weekly timeframe, making for a cleaner chart with less noise.
Intraday Chart Examples
Daily 10-EMA, 21-EMA and 50-SMA on an intraday chart.
AVWAP and marked highs/lows.
RS Line ~ Relative Strength
The RS Line compares a stock's performance to the S&P 500 index. A rising RS Line means the stock is outperforming the overall market. Another important signal is when the RS Line reaches a new high before price. When this occurs, it indicates strong demand for the stock and may precede a significant price increase as buyers accumulate shares. Both signals are customizable within LevelUp providing multiple visual cues when the required conditions are met.
LevelUp also adds a few unique visuals as it relates to the typical RS Line. Included are options to show symbols on the RS line that represent RS Line new high and RS Line new high before price. This provides an at-a-glance view of the trend. Additionally, LevelUp allows for custom moving averages to be applied to the RS Line as well as an optional cloud to help identify support/resistance levels.
Power Trends
When a power trend is active, there is a stronger than usual uptrend underway. The concept of a power trend was created by Investor's Business Daily (IBD) based on extensive backtesting and historical analysis.
A power trend by definition uses a major index, such as the Nasdaq Composite (IXIC), as the data source for determining a power trend's state, either off or on. The LevelUp indicator builds upon this concept by allowing the current active chart symbol to be the data source for the power trend.
What Starts A Power Trend:
▪ Low is above the 21-day EMA for at least 10 days.
▪ 21-day EMA is above the 50-day SMA for at least five days.
▪ 50-day SMA is in an uptrend.
▪ Close up for the day.
What Ends A Power Trend:
▪ 21-day EMA crosses under 50-day SMA and the close is below prior day close.
▪ Close below the 50-day SMA and low is 10% below recent high.
Important Note: The power trend as created by IBD uses the daily 21-EMA and 50-SMA. Hence, the power trend is only shown when on the daily timeframe.
AVWAP - Anchored VWAP
The Anchored Volume Weighted Average Price (AVWAP) , created by Brian Shannon, is used to assess the average price at which an asset has traded since a specific time, event or milestone. This could be the beginning of a trading day, the release of important news, or any other event deemed significant. By anchoring the VWAP to a specific point in time, it helps market participants analyze how prices have evolved relative to that anchor.
If a stock is above a rising AVWAP, buyers are in control, while a declining AVWAP indicates sellers are in control. By analyzing AVWAP, traders can make informed decisions on timing entries, managing losses and profits, or deciding to stay on the sidelines during periods of market indecision.
Tight Weeks And Up Weeks
William O'Neil primarily focused on weekly charts. Two common patterns he looked for were tight weeks and up weeks.
Tight weeks occur when there are small variations in price from one week to the next. This indicates a lack of supply and accumulation by institutions. You can configure the minimum number of weeks and the maximum % change in price from week to week.
Up weeks are defined as multiple weeks where each close is higher than the previous week. This pattern is often a signal of institutional buying. At a minimum, O'Neil looked for three weeks of upward price action. You can configure the minimum number of up weeks required.
Flat Base
A flat based is relatively tight price action within a range. A flat base takes 5+ weeks (25+ days) to form. Although flat bases are often found after a more significant advance in price, this isn't always the case. With that in mind, LevelUp does not currently have requirements for a prior uptrend while scanning for flat bases.
In a flat base, price declines should be no more than 15% from intraday peak to trough. This is an important distinction, as with a consolidation (see below) the maximum depth is based on the high of first bar that started the base.
Default Requirements:
▪ Daily minimum length: 25 days.
▪ Weekly minimum length: 5 weeks.
▪ Depth maximum: 15% (daily or weekly).
Consolidation
A consolidation differs from a flat base in that the former can be much deeper and last longer. In addition, the fluctuations in price of a flat base are often tighter than a consolidation.
Unlike a flat base, the maximum depth is calculated from the high at the start of the consolidation. The minimum length and maximum depth can be customized for all flat base and consolidation patterns.
Default Requirements:
▪ Daily minimum length: 30 days.
▪ Weekly minimum length: 6 weeks.
▪ Depth maximum: 35% (daily or weekly).
Pullback In Price And Potential Bounce
A pullback occurs when the price declines after an initial advance. This is normal price action as prior support levels are tested. Pullbacks also act as a way to shakeout weak holders before the primary trend resumes.
With LevelUp you specify the type of pullback to track: lower lows, lower closes or both. You also set the minimum number of bars required. Different values can be set for daily and weekly charts. Once your requirements are met, LevelUp will highlight the bar after the pullback is complete. This is often a potential entry/add point.
52-Week Highs
A 52-week high refers to the highest closing price within the past 52 weeks. Trend followers often use the 52-week high as a signal to identify assets with upward momentum, considering it as an indication of a potential trend continuation. This approach assumes that assets that have reached a 52-week high are more likely to experience further price appreciation.
52-week highs can be shown on both weekly and daily charts. You can set the location where the 52-week high symbol is shown: above the bar, below the bar, at the top of the chart or at the bottom of the chart.
Marked Highs And Lows
Marked highs/lows, often referred to as pivot highs/lows, can be helpful to find areas of potential support and resistance. As defined by William O'Neil, on a daily chart, a marked high is the highest high going back nine bars and forward nine bars. The number of days forward/backward is referred to as the period. The same concept applies to finding marked lows.
One benefit of LevelUp marked highs/lows is that you can customize the high and low periods on all timeframes.
There is an additional option when viewing marked highs/lows to see where a breakout occurs. The highlight is shown if the current bar high is above the most recent pivot high.
Comparing Stock Performance
With two or more copies of LevelUp installed, you can configure different settings and compare and contrast how indicators and signals perform relative to one another.
This is a great way to come up with your own custom layout for each timeframe, tailored to your preferences and trading style.
Stats And The Signals Table
The stats and signal tables can be very helpful to see price information and patterns at a glance. For example, you can quickly determine potential stoploss placement based on the distance to/from a moving average. The signals tables show the status of several key trend indicators, including 52-week highs, RS Line new high and RS Line new high before price.
Managing Long Term Trends
Depending on your trading style, there are many ways to take advantage of long term trends. For example, the chart that follows show how an uptrend can be a profitable trade whether holding for the duration or taking shorter term trades along the way.
Machine Learning: Optimal RSI [YinYangAlgorithms]This Indicator, will rate multiple different lengths of RSIs to determine which RSI to RSI MA cross produced the highest profit within the lookback span. This ‘Optimal RSI’ is then passed back, and if toggled will then be thrown into a Machine Learning calculation. You have the option to Filter RSI and RSI MA’s within the Machine Learning calculation. What this does is, only other Optimal RSI’s which are in the same bullish or bearish direction (is the RSI above or below the RSI MA) will be added to the calculation.
You can either (by default) use a Simple Average; which is essentially just a Mean of all the Optimal RSI’s with a length of Machine Learning. Or, you can opt to use a k-Nearest Neighbour (KNN) calculation which takes a Fast and Slow Speed. We essentially turn the Optimal RSI into a MA with different lengths and then compare the distance between the two within our KNN Function.
RSI may very well be one of the most used Indicators for identifying crucial Overbought and Oversold locations. Not only that but when it crosses its Moving Average (MA) line it may also indicate good locations to Buy and Sell. Many traders simply use the RSI with the standard length (14), however, does that mean this is the best length?
By using the length of the top performing RSI and then applying some Machine Learning logic to it, we hope to create what may be a more accurate, smooth, optimal, RSI.
Tutorial:
This is a pretty zoomed out Perspective of what the Indicator looks like with its default settings (except with Bollinger Bands and Signals disabled). If you look at the Tables above, you’ll notice, currently the Top Performing RSI Length is 13 with an Optimal Profit % of: 1.00054973. On its default settings, what it does is Scan X amount of RSI Lengths and checks for when the RSI and RSI MA cross each other. It then records the profitability of each cross to identify which length produced the overall highest crossing profitability. Whichever length produces the highest profit is then the RSI length that is used in the plots, until another length takes its place. This may result in what we deem to be the ‘Optimal RSI’ as it is an adaptive RSI which changes based on performance.
In our next example, we changed the ‘Optimal RSI Type’ from ‘All Crossings’ to ‘Extremity Crossings’. If you compare the last two examples to each other, you’ll notice some similarities, but overall they’re quite different. The reason why is, the Optimal RSI is calculated differently. When using ‘All Crossings’ everytime the RSI and RSI MA cross, we evaluate it for profit (short and long). However, with ‘Extremity Crossings’, we only evaluate it when the RSI crosses over the RSI MA and RSI <= 40 or RSI crosses under the RSI MA and RSI >= 60. We conclude the crossing when it crosses back on its opposite of the extremity, and that is how it finds its Optimal RSI.
The way we determine the Optimal RSI is crucial to calculating which length is currently optimal.
In this next example we have zoomed in a bit, and have the full default settings on. Now we have signals (which you can set alerts for), for when the RSI and RSI MA cross (green is bullish and red is bearish). We also have our Optimal RSI Bollinger Bands enabled here too. These bands allow you to see where there may be Support and Resistance within the RSI at levels that aren’t static; such as 30 and 70. The length the RSI Bollinger Bands use is the Optimal RSI Length, allowing it to likewise change in correlation to the Optimal RSI.
In the example above, we’ve zoomed out as far as the Optimal RSI Bollinger Bands go. You’ll notice, the Bollinger Bands may act as Support and Resistance locations within and outside of the RSI Mid zone (30-70). In the next example we will highlight these areas so they may be easier to see.
Circled above, you may see how many times the Optimal RSI faced Support and Resistance locations on the Bollinger Bands. These Bollinger Bands may give a second location for Support and Resistance. The key Support and Resistance may still be the 30/50/70, however the Bollinger Bands allows us to have a more adaptive, moving form of Support and Resistance. This helps to show where it may ‘bounce’ if it surpasses any of the static levels (30/50/70).
Due to the fact that this Indicator may take a long time to execute and it can throw errors for such, we have added a Setting called: Adjust Optimal RSI Lookback and RSI Count. This settings will automatically modify the Optimal RSI Lookback Length and the RSI Count based on the Time Frame you are on and the Bar Indexes that are within. For instance, if we switch to the 1 Hour Time Frame, it will adjust the length from 200->90 and RSI Count from 30->20. If this wasn’t adjusted, the Indicator would Timeout.
You may however, change the Setting ‘Adjust Optimal RSI Lookback and RSI Count’ to ‘Manual’ from ‘Auto’. This will give you control over the ‘Optimal RSI Lookback Length’ and ‘RSI Count’ within the Settings. Please note, it will likely take some “fine tuning” to find working settings without the Indicator timing out, but there are definitely times you can find better settings than our ‘Auto’ will create; especially on higher Time Frames. The Minimum our ‘Auto’ will create is:
Optimal RSI Lookback Length: 90
RSI Count: 20
The Maximum it will create is:
Optimal RSI Lookback Length: 200
RSI Count: 30
If there isn’t much bar index history, for instance, if you’re on the 1 Day and the pair is BTC/USDT you’ll get < 4000 Bar Indexes worth of data. For this reason it is possible to manually increase the settings to say:
Optimal RSI Lookback Length: 500
RSI Count: 50
But, please note, if you make it too high, it may also lead to inaccuracies.
We will conclude our Tutorial here, hopefully this has given you some insight as to how calculating our Optimal RSI and then using it within Machine Learning may create a more adaptive RSI.
Settings:
Optimal RSI:
Show Crossing Signals: Display signals where the RSI and RSI Cross.
Show Tables: Display Information Tables to show information like, Optimal RSI Length, Best Profit, New Optimal RSI Lookback Length and New RSI Count.
Show Bollinger Bands: Show RSI Bollinger Bands. These bands work like the TDI Indicator, except its length changes as it uses the current RSI Optimal Length.
Optimal RSI Type: This is how we calculate our Optimal RSI. Do we use all RSI and RSI MA Crossings or just when it crosses within the Extremities.
Adjust Optimal RSI Lookback and RSI Count: Auto means the script will automatically adjust the Optimal RSI Lookback Length and RSI Count based on the current Time Frame and Bar Index's on chart. This will attempt to stop the script from 'Taking too long to Execute'. Manual means you have full control of the Optimal RSI Lookback Length and RSI Count.
Optimal RSI Lookback Length: How far back are we looking to see which RSI length is optimal? Please note the more bars the lower this needs to be. For instance with BTC/USDT you can use 500 here on 1D but only 200 for 15 Minutes; otherwise it will timeout.
RSI Count: How many lengths are we checking? For instance, if our 'RSI Minimum Length' is 4 and this is 30, the valid RSI lengths we check is 4-34.
RSI Minimum Length: What is the RSI length we start our scans at? We are capped with RSI Count otherwise it will cause the Indicator to timeout, so we don't want to waste any processing power on irrelevant lengths.
RSI MA Length: What length are we using to calculate the optimal RSI cross' and likewise plot our RSI MA with?
Extremity Crossings RSI Backup Length: When there is no Optimal RSI (if using Extremity Crossings), which RSI should we use instead?
Machine Learning:
Use Rational Quadratics: Rationalizing our Close may be beneficial for usage within ML calculations.
Filter RSI and RSI MA: Should we filter the RSI's before usage in ML calculations? Essentially should we only use RSI data that are of the same type as our Optimal RSI? For instance if our Optimal RSI is Bullish (RSI > RSI MA), should we only use ML RSI's that are likewise bullish?
Machine Learning Type: Are we using a Simple ML Average, KNN Mean Average, KNN Exponential Average or None?
KNN Distance Type: We need to check if distance is within the KNN Min/Max distance, which distance checks are we using.
Machine Learning Length: How far back is our Machine Learning going to keep data for.
k-Nearest Neighbour (KNN) Length: How many k-Nearest Neighbours will we account for?
Fast ML Data Length: What is our Fast ML Length? This is used with our Slow Length to create our KNN Distance.
Slow ML Data Length: What is our Slow ML Length? This is used with our Fast Length to create our KNN Distance.
If you have any questions, comments, ideas or concerns please don't hesitate to contact us.
HAPPY TRADING!